// sass --watch my.scss:my.css --sourcemap
@mixin textHidden($line: 1, $overflow: ellipsis) {
    overflow: hidden;
    text-overflow: $overflow;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: $line;
    -webkit-box-orient: vertical;
}

$black: rgba(24, 25, 26, 1);
$gray: rgba(58, 59, 60, 1);
// var(--big-font-size):32px;
// var(--medium-font-size):28px;
// var(--sub-font-size):20px;


.html{
    --big-font-size:28px;
    --medium-font-size:24px;
    --sub-font-size:18px;
}
@media (max-width: 768px) {
    html{
       --big-font-size:20px;
       --medium-font-size:18px;
       --sub-font-size:16px;
    }
}

.tab-banner {
    // height: 320px;
}

.navbar {
    background: $gray;
}

.nav-product-sub {
    background: #18191A;
    width: 550px;
    padding: 20px;
    border-radius: 8px;
    @media (max-width: 768px) {
        &{
            width: 96%;
        }
    }
    &>div {
        float: left;
        h6 {
            color: #fff;
            padding-left: 1rem;
            height: 40px;
            line-height: 40px;
        }

        a {
            color: rgba($color: #fff, $alpha: .7);
            line-height: 30px;
            padding: .25rem 1rem;
        }
    }
}

.nav-cases-sub {
    border-radius: 6px;
    background: $black;
    padding: 10px;
    width: 400px;
    text-align: center;

    a {
        margin: 10px;
        float: left;
        line-height: 45px;
        margin-right: calc(3% - 10px);
        width: 30%;
        background-color: $gray;
        color: #fff;
    }
}

.slideshow {
    // height: 600px;
}

.other-service-tips {
    position: relative;

    .item {
        border-bottom: 1px solid #D9D9D9;
        width: 47%;
        padding: 30px 50px;

        img {
            width: 90px;
        }

        h5 {
            font-size:var(--big-font-size);
            line-height: 70px;
        }

        p {
            font-size:var(--sub-font-size);
            color: #666;
            text-align: left;
        }

        &:nth-last-child(1),
        &:nth-last-child(2) {
            border-bottom: 0;
        }
    }

    &::after {
        content: '';
        height: 100%;
        width: 1px;
        position: absolute;
        left: 50%;
        top: 0;
        background-color: #D9D9D9;
    }
}
.other-service-tips.left-pic{
   
    // padding-left: 200px;
    .item{
        position: relative;
        h5,p{
            padding-left: 100px;
            // width: 70%;
        }
        img{
            position: absolute;
            left: 0;
            top: 30%;
        }
    }
}
.lr-card {
    .item {
        margin: 50px auto;
        display: flex;
        justify-content: space-between;

        &:nth-child(even) {
            flex-direction: row-reverse;
        }

        &>div {
            width: 66%;
        }

        h2 {
            font-size:var(--medium-font-size);
        }

        p {
            font-size:var(--sub-font-size);
            color: rgba(102, 102, 102, 1);
        }

        .cover {
            border-radius: 6px;
            width: 30%;
        }
    }
}

.vague-block {
    .item {
        padding: 20px;
        box-sizing: border-box;
        border: 1px solid #333;
        border-radius: 6px;
        margin-bottom: 30px;
        width: 48%;
        height: 280px;
        position: relative;
        overflow: hidden;

        h5 {
            font-size:var(--medium-font-size);
            line-height: 60px;
        }

        p {
            width: 66%;
            font-size: 16px;
            line-height: 30px;
            color: rgba(102, 102, 102, 1);
        }

        &::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            width: 30%;
            height: 100%;
            background: url(../images/vague.png) no-repeat right center;
            background-size: cover;
        }
    }
}

#about {
    background: #18191a;

    .logo {
        width: 250px;
        margin: 30px auto;
        display: block;
    }

    .box {
        background: #3a3b3c;
        color: #fff;
        border-radius: 4px;
        padding: 10px;

        &::before {
            content: '';
            display: block;
            margin-top: 30px;
            width: 160px;
            height: 100px;
            background: url(../images/aboutLeft.png) no-repeat 30px 0;
            background-size: 100px 80px;
        }

        &::after {
            content: '';
            display: block;
            margin-bottom: 30px;
            width: calc(100% - 30px);
            height: 100px;
            background: url(../images/aboutRight.png) no-repeat 0 0;
            background-size: 100px 80px;
            background-position: right bottom;
        }

        p {
            
            margin: 0 auto 30px;
            font-size: 18px;
            line-height: 36px;
        }
        a{
            color: #fff;
        }
    }
}

#index {

    .ad1 {
        background-color: $black;

        .box {
            // height: 560px;

            &>div {
                height:510px;
                padding: 0 20px;
                background-color: rgba(36, 37, 38, 1);
                h5 {
                    font-size: 18px;
                }
                p {
                    font-size: 16px;
                    line-height: 28px;
                    color: rgba(255, 255, 255, 0.7);
                }

                img {
                    display: block;
                    margin: auto;
                    width: 26px;
                }

                a {
                    font-size: 12px;
                }
            }

            .cloud .item {
                text-align: left;
                margin: 1.4em 0;

            }

        }
    }

    .ad2 {
        background: rgba(36, 37, 38, 1);
        // height: 800px;

        img {
            width: 100%;
            cursor: pointer;
        }
    }

    .ad3 {
        background: $black;

        .box div {
            width: 40%;
            margin: 30px 0;

            h5 {
                font-size: 22px;

                span {
                    color: rgba(2, 103, 255, 1);
                    font-size:var(--big-font-size);
                }
            }

            p {
                font-size: 14px;
                color: rgba(255, 255, 255, 0.7);

            }
        }
    }

    .ad4 {
        background: rgba(36, 37, 38, 1);

        .box>div {
            box-sizing: border-box;
            background: $black;
            color: rgba(255, 255, 255, 0.7);
            border-radius: 6px;
            border: 1px solid #ccc;
            overflow: hidden;
            padding: 16px;

            .cover {
                width: 100%;
                height: 260px;
                object-fit: cover;
                border-radius: 6px;
                overflow: hidden;
            }

            h2 {
                margin: 10px 0 0;
                color: #fff;
                ;
                font-size:var(--sub-font-size);
                @include textHidden(2);
            }

            p {
                font-size: 14px;
                @include textHidden(3);
                margin: 20px auto;
            }
        }
    }
}

.footer {
    color: #fff;

    h5 {
        padding-top: 10px;
        font-size: 22px;
    }

    .logo {
        width: 150px;
    }

    .follow img {
        cursor: pointer;
        width: 40px;
    }

    .copyright {
        background-color: $black;
        line-height: 50px;

        img {
            width: 40px;
            height: 40px;
            margin-top: 5px;
            cursor: pointer;
        }
    }
}

#cloud {
    h4 {
        &.title {
            font-size:var(--big-font-size);
        }
    }

    .box2 {
        .item {
            margin: 20px 0;
            width: 38%;

            h5 {
                font-size:var(--big-font-size);
            }

            p {
                font-size:var(--sub-font-size);
                color: #666666;
            }

            img {
                width: 100px;
                box-sizing: border-box;
                padding: 20px;
                background: #ededf2;
                border-radius: 20px;
            }
        }
    }

    .vague-block .item {
        height: auto;
        h5 {
            font-size:var(--medium-font-size);
            line-height: 60px;
        }

        p {
            font-size:var(--sub-font-size);
            line-height: 40px;
        }
    }

    .box4 p {
        width: 370px;
        background: #fafafa;
        font-size:var(--medium-font-size);
        line-height: 50px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
}
 
#product-ElasticComputility {
    .box1 {
        .item {
            width: 28%;
            margin-bottom: 40px;

            img {
                width: 76px;
            }

            h5 {
                font-size: 30px;
                line-height: 60px;
            }

            p {
                font-size:var(--sub-font-size);
                color: rgba(102, 102, 102, 1);

            }
        }

        .item:not(:nth-child(3n)) {
            justify-self: start;
            margin-right: 8%;
        }
    }

    .box2 {
        .item {
            padding: 20px;
            box-sizing: border-box;
            border: 1px solid rgba(0, 0, 0, 0.3);
            border-radius: 6px;
            margin-bottom: 30px;
            width: 48%;
            height: 280px;
            position: relative;
            overflow: hidden;

            h5 {
                font-size:var(--medium-font-size);
                line-height: 60px;
            }

            p {
                color: rgba(102, 102, 102, 1);
                font-size:var(--sub-font-size);
                width: 55%;
            }

            @for $i from 1 through 4 {
                &:nth-child(#{$i})::after {
                    content: '';
                    position: absolute;
                    right: 10px;
                    bottom: 10px;
                    width: 38%;
                    height: 75%;
                    background: url(../images/product-ElasticComputility-cover#{$i}.png) no-repeat right center;
                    background-size: cover;
                }
            }

        }
    }

    .box3 {
        .item {
            margin: 0 auto 70px;
            border-radius: 20px;

            h5 {
                font-size:var(--medium-font-size);
                line-height: 50px;
            }

            .info {
                font-size: 18px;
            }

            &>div {
                .block {
                    display: inline-block;
                    padding: 20px;
                    background: rgba(244, 249, 255, 1);
                    width: 32%;

                    &.w50 {
                        width: 49%;
                    }
                }

                h6 {
                    font-size: 22px;
                }

                p {
                    font-size: 16px;
                    color: rgba(102, 102, 102, 1);
                }
            }
        }
    }
}

#product-GPUComputility {
    .box {
        img {
            width: 350px;
        }

        p {
            width: 60%;
            font-size:var(--sub-font-size);
            line-height: 40px;
        }
    }

    .box1 {
        .item {
            width: 28%;
            margin-bottom: 40px;

            img {
                width: 76px;
            }

            h5 {
                font-size: 30px;
                line-height: 60px;
            }

            p {
                font-size:var(--sub-font-size);
                color: rgba(102, 102, 102, 1);

            }
        }

        .item:not(:nth-child(3n)) {
            justify-self: start;
            margin-right: 8%;
        }
    }
}

#IDC {
    .box {
        position: relative;

        &::after {
            content: "";
            height: 100%;
            width: 1px;
            background-color: #d9d9d9;
            position: absolute;
            left: 50%;
            top: 0;
        }

        .item {
            border-color: #d9d9d9;
            box-sizing: border-box;
            width: 48%;

            img {
                display: block;
                width: 90px;
                margin: auto;
            }

            h4 {
                font-size:var(--big-font-size);
                line-height: 60px;
            }

            p {
                font-size:var(--sub-font-size);
                color: #666666;
            }
        }
    }

    .lr-card {
        p {
            color: #000;
        }
    }
}

#news-list {
    background-color: #18191a;
    color: #fff;

    .box {
        display: flex;
        flex-wrap: wrap;

        .item {
            display: block;
            width: 585px;
            padding: 20px 80px 20px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-left: 0;

            &:hover {
                .link {
                    visibility: visible;
                }
            }

            .cover {
                width: 400px;
                height: 143px;
                object-fit: contain;
                display: block;
                object-fit: cover;
            }

            h3 {
                line-height: 50px;
            }

            p {
                color: rgba(255, 255, 255, 0.7);
                font-size: 14px;
            }

            .link {
                line-height: 28px;
                border-bottom: 1px solid #fff;
                text-decoration: none;
                color: #fff;
                float: right;
                margin: 10px 10px 0 0;
                visibility: hidden;
            }

            &:nth-child(even) {
                border-right: 0;
            }
        }
    }
}

#news-list .box .item:last-child,
#news-list .box .item:nth-last-child(2) {
    border-bottom: 0;
}

#news-list .box .item:first-child,
#news-list .box .item:nth-child(2) {
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

#plan-game {
    .box1 {
        height: 480px;

        img {
            width: 190px;
        }

        .item {
            background: #f4f9ff;
            padding: 30px;
            padding-left: 160px;
            box-sizing: border-box;
            position: relative;
            margin-bottom: 50px;
            border-radius: 4px;
            width: calc(1170px - 240px);

            h5 {
                font-size:var(--sub-font-size);
            }

            p {
                color: #666666;
                font-size: 14px;
            }

            &::before {
                width: 60px;
                text-align: center;
                content: attr(num);
                display: inline-block;
                position: absolute;
                left: 30px;
                top: 0;
                bottom: 0;
                font-size: 46px;
                line-height: 112px;
                margin: auto;
                color: #000;
                font-weight: bold;
            }
        }
    }
}

#plan-vid {
    .box {
        .item {
            border-radius: 5px;
            background: #f4f9ff;

            .tips {
                display: inline-block;
                background: #0267ff;
                font-size:var(--big-font-size);
                padding: 4px 10px;
                color: #fff;
                text-align: center;
                border-radius: 4px;
            }

            h3 {
                font-size:var(--big-font-size);
                line-height: 56px;
            }

            p {
                font-size:var(--sub-font-size);
                line-height: 36px;
                color: #666666;
                margin-bottom: 20px;
            }
        }
    }
}

#plan-ecommerce {
    .box {
        img {
            width: 300px;
        }

        &>div {
            .item {
                h3 {
                    line-height: 50px;
                }

                p {
                    color: #666666;
                }
            }
        }
    }
}

#cooperate {
    .box1 {
        background-color: #18191a;
        color: #fff;

        &>div {
            &:nth-child(even) {
                background-color: #3a3b3c;
            }
        }

        .item {
            &>div {
                width: 53%;
            }
        }

        h2 {
            font-size: 36px;
        }

        p {
            font-size: 16px;
            color: #fff;
        }

        img {
            width: 45%;
        }
    }

    .box2 {
        color: #fff;
        background-color: #3a3b3c;

        &>div {
            max-width: 1000px;
        }

        img {
            width: 100px;
        }

        p {
            line-height: 56px;
        }
    }
}

#product-BareMetalComputility {
    .box1 {
        .item {
            position: relative;

            &::after {
                content: '';
                width: 1px;
                height: 100%;
                // border-left: 1px dashed rgba(102, 102, 102, 1);
                position: absolute;
                top: 0;
                left: 280px;
                background-image: linear-gradient(to bottom, #333 50%, transparent 0);
                background-size: 1px 10px;
                background-repeat: repeat-y;
            }

            h4 {
                width: 300px;
            }

            p {
                width: calc(100% - 340px);
                font-size: 14px;
                line-height: 30px;
            }


        }

        @each $index, $color in (1: #FFEAEA, 2: #FFF7EA, 3: #F6FFEA, 4: #EAFCFF, 5:#F4EAFF) {
            .item:nth-child(#{$index}) {
                background-color: #{$color};
            }
        }

    }

    .box2 {
        .item {
            &>div {
                width: 53%;
            }
        }

        h2 {
            font-size: 36px;
        }

        img {
            width: 45%;
        }
    }
}

#product-Other-IP {
    .box2 p {
        width: 370px;
        background: #fafafa;
        font-size:var(--medium-font-size);
        line-height: 50px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
}

#product-Other-SMS {
    .box2 .item {
        width: 35%;
        margin-bottom: 30px;

        img {
            width: 100px;
        }

        h4 {
            font-size:var(--big-font-size);
            line-height: 60px;
        }

        p {
            color: #666;
            font-size: 18px;
        }
    }
}

#product-Other-PBN {
    .box2 .item {
        box-sizing: border-box;
        width: calc(50% - 20px);
        background: #fafafa;
        border-radius: 4px;
        margin-bottom: 20px;

        h4 {
            font-size:var(--big-font-size);
            line-height: 60px;
        }

        p {
            font-size:var(--sub-font-size);
            color: #666;
        }
    }

    .vague-block .item {
        height: 220px;
    }
}

#product-Other-SAN {
    .box1 {
        border-radius: 6px;
        border: 1px solid #BADFFF;
        background: linear-gradient(to bottom right, #fff, #DFEAFB);
        font-size: 16px;

        h5 {
            font-size:var(--medium-font-size);
            line-height: 60px;
            color: #0267FF;
        }
    }

    .box2 .item {
        width: 100%;
        border: 1px solid #A7A9AC;
        border-radius: 4px;
        padding: 20px;
        padding-left: 200px;
        position: relative;
        height: 180px;

        img {
            position: absolute;
            padding: 20px;
            background-color: #F4F9FF;
            left: 24px;
            top: 24px;
            border-radius: 4px;
            overflow: hidden;
        }

        h4 {
            font-size:var(--big-font-size);
            line-height: 60px;
        }

        p {
            font-size:var(--sub-font-size);
            color: #666;
        }
    }
}

#product-network-IPT .box {
    max-width: 1000px;

    img {
        width: 100px;
    }

    p {
        line-height: 56px;
    }
}

#product-network-Dedicated .box1 .item {
    width: 30%;
    background-color: #F4F9FF;

    h4 {
        font-size:var(--medium-font-size);
        line-height: 60px;
    }

    p {
        font-size:var(--sub-font-size);
    }
}

#product-network-WAN {
    .box1 .item {
        margin-bottom: 50px;
        width: 40%;

        img {
            width: 60px;
        }

        h4 {
            font-size:var(--big-font-size);
            line-height: 60px;
        }

        p {
            font-size:var(--sub-font-size);
            color: #666;
        }
    }
    .box2 .item{
        width: 49%;
        margin-bottom: 2%;
        border:1px solid #000;
        border-radius: 6px;
        h5 {
            font-size:var(--medium-font-size);
            line-height: 60px;
        }
        p {
            font-size:var(--sub-font-size);
            color: #666;
        }
    }
    .box3{
        #myTab{
            font-size:var(--medium-font-size);
            color: #666;
            line-height: 60px;
            .active>a{
                color: #0267FF;
            }
        }
    }
}
#product-network-CloudJoin{
    h3.title{
        font-size:var(--medium-font-size);
    }
}
#plan-AI{
    h4 {
        font-size:var(--big-font-size);
        line-height: 60px;
    }

    p {
        font-size:var(--sub-font-size);
        color: #666;
    }
    .box1{
        border-radius: 6px;
        img{
            width: 380px;
        }
        &>div{
            width:50%;
        }
        

    }
    .box2 .block{
        border-radius: 6px;
        background-color: #F4F9FF;
        .btn{
            display: inline-block;
            color: #fff;
            border-radius: 4px;
            background-color: #0267FF;;
            line-height: 50px;
            font-size:var(--big-font-size);
        }
    }
}
#plan-Industry{
    .box2 .item{
        border-radius: 6px;
        position: relative;
        height: 180px;
      
        h5,p{
            padding-left: 160px;
        }
        img{
            position: absolute;
            top:30px;
            left:30px;
        }
        h5 {
            font-size:var(--medium-font-size);
            line-height: 60px;
        }
        p {
            font-size:var(--sub-font-size);
            color: #666;
        }
    }
}
#plan-Company{
    .box1 .item{
        width:40%;
        h5 {
            font-size:var(--medium-font-size);
            line-height: 60px;
        }
        p {
            font-size:var(--sub-font-size);
            color: #666;
        }
    }
    .box2 {
        img{
            width: 260px;
        }
        &>div{
            width: calc(100% - 280px)
        }
        .item{
            border-radius: 4px;
            font-size:var(--sub-font-size);
        }
    }
    .box3{
        border-radius: 4px;
        background: #F4F9FF;
        .btn{
            display: inline-block;
            color: #fff;
            border-radius: 4px;
            background-color: #0267FF;;
            line-height: 50px;
            font-size:var(--big-font-size);
        }
        h5 {
            font-size:var(--medium-font-size);
            line-height: 60px;
        }
        p {
            font-size:var(--sub-font-size);
            color: #666;
        }
    }
}
#plan-Computility{
    .box1 .item{
        width:40%;
        h5 {
            font-size:var(--medium-font-size);
            line-height: 60px;
        }
        p {
            font-size:var(--sub-font-size);
            color: #666;
        }
    }
    .box2 {
        img{
            width: 200px;
        }
        &>div{
            width: calc(100% - 240px)
        }
        .item{
            border-radius: 4px;
            font-size:var(--sub-font-size);
            h5 {
                font-size:var(--medium-font-size);
                line-height: 60px;
            }
            p {
                font-size:var(--sub-font-size);
                color: #666;
            }
        }
    }
}